﻿using UnityEngine;
using System.Collections;

public class startSounds : MonoBehaviour {
public AudioClip start;
	public AudioClip whoosh;
	public AudioClip alarm;
	// Use this for initialization
	void Start () 
    {
        audio.clip = start;
        audio.loop = true;
        audio.Play();
	}
	
	// Update is called once per frame
	void Update () {
        if (!Manager.Sound)
        {
            audio.mute = true;
        }
        else
        {
            audio.mute = false;
        }
		//when lift comes up
		
		//alarm
		//audio.PlayOneShot(alarm);
	//	audio.PlayOneShot(whoosh);

	
	}
	void OnGUI(){
		
	//if(	GUI.Button(new Rect(Screen.width/2, Screen.height/2 + 240, 60,60),"Credits")){
	//	Application.LoadLevel(4);
	//	}
	///	GUI.Button(new Rect(Screen.width/2 - 80 , Screen.height/2 + 240, 60, 60),"Options");
		
	}
}
